package com.tuanzi.loan.web.lazy.banana.statistics;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.banana.statistics.BananaCommonActivityDeviceService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.banana.statistics.BananaCommonActivityDeviceRequest;
import com.tuanzi.loan.vo.response.banana.statistics.BananaCommonActivityDeviceResponse;

public class BananaCommonActivityDeviceLazyDataModel extends BaseLazyDataModel<BananaCommonActivityDeviceRequest, BananaCommonActivityDeviceResponse> {

	private BananaCommonActivityDeviceService bananaCommonActivityDeviceService = SpringContextHolder.getBean(BananaCommonActivityDeviceService.class);

	public BananaCommonActivityDeviceLazyDataModel(BananaCommonActivityDeviceRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<BananaCommonActivityDeviceResponse> doLoad(PageSearcher<BananaCommonActivityDeviceRequest> pageSearcher) {
		return bananaCommonActivityDeviceService.list(pageSearcher);
	}

}